<div id="main">
    <div class="container-fluid">
        <div class="page-header">
        	<div class="pull-left">
        		<h1>系统消息</h1>
        	</div>
        	<div class="pull-right">
        		<ul class="stats">
        			<li class='lightred'>
        				<i class="icon-calendar"></i>
        				<div class="details">
        					<span class="big"></span>
        					<span></span>
        				</div>
        			</li>
        		</ul>
        	</div>
        </div>
        <div class="breadcrumbs">
        	<ul>
        		<li>
        			<a href="javascript:void(0);">后台管理</a>
        			<i class="icon-angle-right"></i>
        		</li>
        		<li>
        			<a href="javascript:void(0);">账号管理</a>
        			<i class="icon-angle-right"></i>
        		</li>
        		<li>
        			<a href="javascript:void(0);"><?=empty($id)?'添加消息':'修改消息'?></a>
        		</li>
        	</ul>
        	<div class="close-bread">
        		<a href="#"><i class="icon-remove"></i></a>
        	</div>
        </div>
    
        <div class="row-fluid">
        	<div class="span12">
        		<div class="box box-color box-bordered">
        			<div class="box-title">
        				<h3>
        					<i class="icon-user">
                                <?=empty($id)?'添加消息':'修改消息'?>
                            </i>
        				</h3>
        			</div>
        			<div class="box-content nopadding">
                        <form  class='form-horizontal form-bordered form-validate' action='<?=$this->url("system/messagesEdit")?>'  id="login" name="bb" method='post'>
        					<div class="control-group">
        						<label class="control-label">标题</label>
        						<div class="controls">
        							<input type="text" name="data[title]" id="title" value="<?=empty($resource)?'':$resource['title']?>" class="input-xlarge" data-rule-required="true" data-rule-minlength="2">
        						</div>
        					</div>
        					<div class="control-group">
        						<label  class="control-label">内容</label>
        						<div class="controls">
        							<textarea name="data[content]" class="input-xlarge" rows="8"><?=empty($resource)?'':$resource['content']?></textarea>
        						</div>
        					</div>
        					<div class="form-actions">
                                <input type="hidden" name="id" value="<?=empty($id)?0:$id?>" />
        						<input type="submit" id="edit" class="btn btn-primary show_shadefrist" value="<?=empty($id)?'添加':'修改'?>" />
                                <input type="reset" class="btn btn-primary" value="重置" />
                                <input type="button" id="frist" class="btn btn-primary" value="返回" />
        					</div>
        				</form>
        			</div>
        		</div>
        	</div>
        </div>
    </div>
</div>
<script>
    $(document).ready(function(){
        $('#frist').click(function(){
            window.location.href="/index.php/sysadmin/system/messages";
        })
    })
</script>